package cn.virens.util.poi.exception;

import org.apache.poi.ss.usermodel.Row;

public class ExcelRowException extends ExcelException {
	private static final long serialVersionUID = -4695596792277438038L;

	private int rowIndex;

	public ExcelRowException(Row row, String message) {
		this(row, message, null);
	}

	public ExcelRowException(Row row, String message, Throwable cause) {
		super(message, cause);

		this.rowIndex = row.getRowNum();
	}

	public ExcelRowException(int row, String message) {
		this(row, message, null);
	}

	public ExcelRowException(int row, String message, Throwable cause) {
		super(message, cause);

		this.rowIndex = row;
	}

	public int getRowIndex() {
		return rowIndex;
	}

}
